package com.yzd.learnjava.arrays;

import java.util.Arrays;

import com.yzd.learnjava.util.CountingGenerator;
import com.yzd.learnjava.util.Generated;
import com.yzd.learnjava.util.Print;

public class TestGenerated {
	public static void main(String[] args) {
		Integer[] a = {9,8,7,6,5};
		Print.print(Arrays.toString(a));
		
		a = Generated.array(a, new CountingGenerator.Integer());
		Print.print(Arrays.toString(a));
		
		Integer[] b = Generated.array(Integer.class, new CountingGenerator.Integer(), 15);
		Print.print(Arrays.toString(b));
	}
}
